<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isELIgnored="false"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Cat List</title>
</head>
<body>
<h2>Cat List</h2>
${msg}
<table border="1">
    <thead>
    <tr>
        <th>ID:</th>
        <th>Name:</th>
        <th>color:</th>
    </tr>
    </thead>
    <tbody>
    <c:forEach var="cat" items="${catList}">
        <tr>
            <td>${cat.id}</td>
            <td>${cat.name}</td>
            <td>${cat.color}</td>
        </tr>
    </c:forEach>
    </tbody>
</table>
</table>
</body>
</html>
